import 'package:flutter/material.dart';

class AppColors {
  const AppColors({
    required this.background,
    required this.colorPrimary,
    required this.colorPrimaryDark,
    required this.disabled,
    required this.error,
    required this.divider,
    required this.hintTextColor,
    required this.primarilyTextColor
  });

  factory AppColors.light() {
    return const AppColors(
        background: Color.fromRGBO(247, 248, 250, 1),
        colorPrimary:Color.fromRGBO(0, 195, 179, 1),
        colorPrimaryDark:  Color.fromRGBO(0, 195, 179, 1),
        disabled: Color(0xFFCCCCCC),
        error: Color(0xffff5544),
        divider: Color.fromRGBO(242, 242, 242, 1),
        hintTextColor: Color.fromRGBO(133, 135, 148, 1),
        primarilyTextColor: Color.fromRGBO(51, 51, 51, 1)
    );
  }

  factory AppColors.dark() {
    return const AppColors(
        background: Color.fromRGBO(247, 248, 250, 1),
        colorPrimary:Color.fromRGBO(0, 195, 179, 1),
        colorPrimaryDark:  Color.fromRGBO(0, 195, 179, 1),
        disabled: Color(0xFFCCCCCC),
        error: Color(0xffff5544),
        divider: Color.fromRGBO(242, 242, 242, 1),
        hintTextColor: Color.fromRGBO(133, 135, 148, 1),
        primarilyTextColor: Color.fromRGBO(51, 51, 51, 1)
    );
  }

  final Color background;
  final Color colorPrimary;
  final Color colorPrimaryDark;
  final Color disabled;
  final Color error;
  final Color divider;
  ///提示文本颜色
  final Color hintTextColor;
  ///主要的文本颜色
  final Color primarilyTextColor;


  static const Color fc=Color.fromRGBO(204, 204, 204, 1);
}